package com.yzion.demo_coollist;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.yzion.baseapp.R;
import com.yzion.baselib.fragment.BaseFragment;

/**
 * 交互样式2
 */
public class XYHomeFragment extends BaseFragment {

//    GankApi.getGankData("all", 1, 1, new Callback<GankResults>() {
//                @Override
//                public void onResponse(Call<GankResults> call, Response<GankResults> response) {
//                    ToastUtils.showShort("onResponse");
//                }
//
//                @Override
//                public void onFailure(Call<GankResults> call, Throwable t) {
//                    ToastUtils.showShort("onFailure:" + t.getMessage());
//                }
//            });

    //        btn2.setOnClickListener(v -> {
//            MovieApi.getMovie("5d6765254b28382a67e18caa", new Callback<String>() {
//                @Override
//                public void onResponse(Call<String> call, Response<String> response) {
//                    ToastUtils.showShort("onResponse");
//                }
//
//                @Override
//                public void onFailure(Call<String> call, Throwable t) {
//                    ToastUtils.showShort("onFailure:" + t.getMessage());
//                }
//            });
//        });

    @Override
    public View setContentView(@NonNull LayoutInflater inflater, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.gank_fragment, null);
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }
}
